package org.ly2048.com.ly2048.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import org.ly2048.com.ly2048.R;
import org.ly2048.com.ly2048.wuziqi.Chessboard;

public class WuziqiActivity extends Activity {

    private Chessboard gameView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.five_game_view);
        gameView = (Chessboard) findViewById(R.id.snake);
        gameView.setTextView((TextView) findViewById(R.id.text));
        gameView.setBtn_rj((Button) findViewById(R.id.btn_rj));
        gameView.setBtn_wj((Button) findViewById(R.id.btn_wj));
        gameView.setBtn_agen((Button) findViewById(R.id.btn_agen));
//        ImageView img_back = (ImageView) findViewById(R.id.img_back);
//        img_back.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                finish();
//            }
//        });
    }

}